
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题页</title>

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/Style.css"/>
    <link type="text/css" href="__PUBLIC__/css/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
    <link href="__PUBLIC__/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
    <link href="__PUBLIC__/libs/skins/blue/style.css" rel="stylesheet" type="text/css" id="theme" themeColor="blue"/>
    <script type="text/javascript" src="__PUBLIC__/libs/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/libs/js/framework.js"></script>

<style type="text/css">
table{ padding:0px; margin:0px;}
th,tr,td {
	text-align: center;
	line-height: 28px;
	height: 28px;
}
th{
	background-image: url(__PUBLIC__/images/th_bg.jpg);
	background-color: #06C;
	}
table {border-collapse:collapse;}
th,td {vertical-align:middle;	border:1px dotted #DDD;	border-collapse:collapse;}
table td span{color:#999999;}
td{cursor:pointer;}
</style>


  <script type="text/javascript">
  $(document).ready(function(){
    $(".data_list tr").dblclick(function() {
     var id=$(this).attr('id');   
	 top.Dialog.open({URL:"__APP__/Custom/edit/id/"+id,Title:"客户业务备注",Width:850,Height:500});
    });
})

        /* 当鼠标移到表格上是，当前一行背景变色 */
      $(document).ready(function(){
		/* top.Dialog.open({URL:"Custom/add",Title:"新增业务人员 ",Width:600,Height:440});*/
            $(".data_list tr td").mouseover(function(){
                $(this).parent().find("td").css("background-color","#D6EDFF");
            });
      })
      /* 当鼠标在表格上移动时，离开的那一行背景恢复 */
      $(document).ready(function(){ 
            $(".data_list tr td").mouseout(function(){
                var bgc = $(this).parent().attr("bg");
                $(this).parent().find("td").css("background-color",bgc);
            });
      })
      
      $(document).ready(function(){ 
            var color="#F8F8F8"
            $(".data_list tr:odd td").css("background-color",color);  //改变偶数行背景色
            /* 把背景色保存到属性中 */
            $(".data_list tr:odd").attr("bg",color);
            $(".data_list tr:even").attr("bg","#fff");
      })
  function changeemp() {
      var checkValue=$("#showemp").val();
      var url=window.location.href;
      url=url.substr(0,url.length-5);
       url+= '/adduser/'+checkValue+'.html';
      window.location.assign(url);
  }
  function  pagesizesave()
  {
      var size=$("#size").val();
      $("#pagesize").val(size);
      $("#form").submit();
  }
  function aaa()
  {
     window.location.reload();
  }
      function searchkey()
      {
          location='__APP__/Custom/search/mark/'+$('#mark').val()+'/key/'+$('#key').val();
      }
  </script>

</head>
<body>
<form method="post" action="{:U('pagesizesave')}" id="form">
    <input type="hidden" id="pagesize" name="pagesize"/>
</form>
<div id="messWindow" class="messWindow"></div>
<div id="promptWindow" class="promptWindow" align="center">
    <div class="titleBar"></div>

</div>
<ul class="tools">
    <LI class=add p="50" style="cursor:pointer;">
    <SPAN>
        <A onclick='top.Dialog.open({URL:"__APP__/Custom/add/",Title:"添加新客户 ",Width:600,Height:400});'">新增客户</A>
    </SPAN>
    </li>
</ul>

    <div class="mainBox">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="data_list">
            <tr>
                <th width="5%">客户</th>
                <th width="10%">公司名称</th>
                <th width="5%">联系电话</th>
                <th width="15%">公司产品</th>
                <th width="5%">业务备注</th>
                <th width="5%">最后联系</th>
                <th width="5%">添加日期</th>

            </tr>
            <volist name="accounts_list" id="vo">
                <tr id="{$vo['id']}">
                    <td>{$vo['cname']}</td>
                    <td>{$vo['company']}</td>
                    <td>{$vo['tel']}</td>
                    <td>{$vo['userproduct']}</td>
                    <td width="25%"><font color="red">
                        {$vo['content']|msubstr=0,30,'utf-8',true}
                    </font></td>
                    <td>{$vo['lxtime']}</td>
                    <td>{$vo['addtime']}</td>
                    </td>
                </tr>
            </volist>
        </table>
    </div>
    <div id="TourExPage" class="page">
        {$page_method}
    </div>
</body>
</html>
